// 系统信息
export const SYSTEM_INFO = uni.getSystemInfoSync()
 
// api服务器
export const API_HOST = SYSTEM_INFO.uniPlatform === 'web' ? '' : BASE_URL;
 
// api服务代理路径
export const API_PROXY = SYSTEM_INFO.uniPlatform === 'web' ? '/api' : ''

/// HOST
export let BASE_URL = "https://www.wanandroid.com"

/// 首页轮播
export let banner_list = "banner/json";

/// 首页列表
export let article_list = "article/list";

/// 首页置顶文章列表
export let article_top = "article/top/json";

/// 知识体系
export let KNOWLEDGE_TREE_LIST = "tree/json";

/// 知识体系详情
export let KNOWLEDGE_DETAIL_LIST = "article/list";

/// 获取公众号名称
export let WX_CHAPTERS_LIST = "wxarticle/chapters/json";

/// 公众号文章数据列表
export let WX_ARTICLE_LIST = "wxarticle/list";

/// 导航数据列表
export let NAVIGATION_LIST = "navi/json";

/// 项目分类列表
export let PROJECT_TREE_LIST = "project/tree/json";

/// 项目文章列表数据
export let PROJECT_ARTICLE_LIST = "project/list";

/// 搜索热词列表
export let SEARCH_HOT_LIST = "hotkey/json";

/// 搜索文章类别列表
export let SEARCH_ARTICLE_LIST = "article/query";

/// 用户登录
export let USER_LOGIN = "user/login";

/// 用户注册
export let USER_REGISTER = "user/register";

/// 收藏列表
export let COLLECTION_LIST = "lg/collect/list";

/// 新增收藏(收藏站内文章)
export let ADD_COLLECTION = "lg/collect";

/// 新增收藏(收藏站外文章)
export let ADD_COLLECTION_2 = "lg/collect/add/json";

/// 取消收藏
export let CANCEL_COLLECTION = "lg/uncollect_originId";

/// 退出登录
export let USER_LOGOUT = "user/logout/json";

/// TODO 列表
export let TODO_LIST = "lg/todo/v2/list";

/// 未完成TODO列表
export let NO_TODO_LIST = "lg/todo/listnotdo";

/// 已完成TODO列表
export let DONE_TODO_LIST = "lg/todo/listdone";

/// 新增一个TODO
export let ADD_TODO = "lg/todo/add/json";

/// 更新TODO
export let UPDATE_TODO = "lg/todo/update";

/// 仅更新完成状态Todo
export let UPDATE_TODO_STATE = "lg/todo/done";

/// 根据ID删除TODO
export let DELETE_TODO_BY_ID = "lg/todo/delete";

/// 用户个人信息
export let USER_INFO = "lg/coin/userinfo/json";

/// 我的积分
export let USER_SCORE_LIST = "lg/coin/list";

/// 积分排行榜
export let RANK_LIST = "coin/rank";

/// 广场列表
export let SQUARE_LIST = "user_article/list";

/// 我的分享列表
export let SHARE_LIST = "user/lg/private_articles";

/// 删除已分享的文章
export let DELETE_SHARE_ARTICLE = "lg/user_article/delete";

/// 分享文章
export let SHARE_ARTICLE_ADD = "lg/user_article/add/json";